package com.qf.consumer.controller;

import com.qf.dubbo.service.TestService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Reference(check = false,version = "1.0",loadbalance = "roundrobin")
    private TestService testService;

    /*
    A -> B
    B -> A
     */

    @GetMapping("/test")
    public String test(){
        String now = testService.getNow();
        return now;
    }
}
